package com.zhongwang.business.gen.entity;

import java.util.ArrayList;
import java.util.List;

public class ConsumerInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ConsumerInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andConsInfoIdIsNull() {
            addCriterion("cons_info_id is null");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdIsNotNull() {
            addCriterion("cons_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdEqualTo(Integer value) {
            addCriterion("cons_info_id =", value, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdNotEqualTo(Integer value) {
            addCriterion("cons_info_id <>", value, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdGreaterThan(Integer value) {
            addCriterion("cons_info_id >", value, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cons_info_id >=", value, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdLessThan(Integer value) {
            addCriterion("cons_info_id <", value, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("cons_info_id <=", value, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdIn(List<Integer> values) {
            addCriterion("cons_info_id in", values, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdNotIn(List<Integer> values) {
            addCriterion("cons_info_id not in", values, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdBetween(Integer value1, Integer value2) {
            addCriterion("cons_info_id between", value1, value2, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsInfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cons_info_id not between", value1, value2, "consInfoId");
            return (Criteria) this;
        }

        public Criteria andConsNameIsNull() {
            addCriterion("cons_name is null");
            return (Criteria) this;
        }

        public Criteria andConsNameIsNotNull() {
            addCriterion("cons_name is not null");
            return (Criteria) this;
        }

        public Criteria andConsNameEqualTo(String value) {
            addCriterion("cons_name =", value, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameNotEqualTo(String value) {
            addCriterion("cons_name <>", value, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameGreaterThan(String value) {
            addCriterion("cons_name >", value, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameGreaterThanOrEqualTo(String value) {
            addCriterion("cons_name >=", value, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameLessThan(String value) {
            addCriterion("cons_name <", value, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameLessThanOrEqualTo(String value) {
            addCriterion("cons_name <=", value, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameLike(String value) {
            addCriterion("cons_name like", value, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameNotLike(String value) {
            addCriterion("cons_name not like", value, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameIn(List<String> values) {
            addCriterion("cons_name in", values, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameNotIn(List<String> values) {
            addCriterion("cons_name not in", values, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameBetween(String value1, String value2) {
            addCriterion("cons_name between", value1, value2, "consName");
            return (Criteria) this;
        }

        public Criteria andConsNameNotBetween(String value1, String value2) {
            addCriterion("cons_name not between", value1, value2, "consName");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnIsNull() {
            addCriterion("cons_info_attn is null");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnIsNotNull() {
            addCriterion("cons_info_attn is not null");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnEqualTo(String value) {
            addCriterion("cons_info_attn =", value, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnNotEqualTo(String value) {
            addCriterion("cons_info_attn <>", value, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnGreaterThan(String value) {
            addCriterion("cons_info_attn >", value, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnGreaterThanOrEqualTo(String value) {
            addCriterion("cons_info_attn >=", value, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnLessThan(String value) {
            addCriterion("cons_info_attn <", value, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnLessThanOrEqualTo(String value) {
            addCriterion("cons_info_attn <=", value, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnLike(String value) {
            addCriterion("cons_info_attn like", value, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnNotLike(String value) {
            addCriterion("cons_info_attn not like", value, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnIn(List<String> values) {
            addCriterion("cons_info_attn in", values, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnNotIn(List<String> values) {
            addCriterion("cons_info_attn not in", values, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnBetween(String value1, String value2) {
            addCriterion("cons_info_attn between", value1, value2, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoAttnNotBetween(String value1, String value2) {
            addCriterion("cons_info_attn not between", value1, value2, "consInfoAttn");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelIsNull() {
            addCriterion("cons_info_tel is null");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelIsNotNull() {
            addCriterion("cons_info_tel is not null");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelEqualTo(String value) {
            addCriterion("cons_info_tel =", value, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelNotEqualTo(String value) {
            addCriterion("cons_info_tel <>", value, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelGreaterThan(String value) {
            addCriterion("cons_info_tel >", value, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelGreaterThanOrEqualTo(String value) {
            addCriterion("cons_info_tel >=", value, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelLessThan(String value) {
            addCriterion("cons_info_tel <", value, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelLessThanOrEqualTo(String value) {
            addCriterion("cons_info_tel <=", value, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelLike(String value) {
            addCriterion("cons_info_tel like", value, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelNotLike(String value) {
            addCriterion("cons_info_tel not like", value, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelIn(List<String> values) {
            addCriterion("cons_info_tel in", values, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelNotIn(List<String> values) {
            addCriterion("cons_info_tel not in", values, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelBetween(String value1, String value2) {
            addCriterion("cons_info_tel between", value1, value2, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoTelNotBetween(String value1, String value2) {
            addCriterion("cons_info_tel not between", value1, value2, "consInfoTel");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressIsNull() {
            addCriterion("cons_info_address is null");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressIsNotNull() {
            addCriterion("cons_info_address is not null");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressEqualTo(String value) {
            addCriterion("cons_info_address =", value, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressNotEqualTo(String value) {
            addCriterion("cons_info_address <>", value, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressGreaterThan(String value) {
            addCriterion("cons_info_address >", value, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressGreaterThanOrEqualTo(String value) {
            addCriterion("cons_info_address >=", value, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressLessThan(String value) {
            addCriterion("cons_info_address <", value, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressLessThanOrEqualTo(String value) {
            addCriterion("cons_info_address <=", value, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressLike(String value) {
            addCriterion("cons_info_address like", value, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressNotLike(String value) {
            addCriterion("cons_info_address not like", value, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressIn(List<String> values) {
            addCriterion("cons_info_address in", values, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressNotIn(List<String> values) {
            addCriterion("cons_info_address not in", values, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressBetween(String value1, String value2) {
            addCriterion("cons_info_address between", value1, value2, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoAddressNotBetween(String value1, String value2) {
            addCriterion("cons_info_address not between", value1, value2, "consInfoAddress");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailIsNull() {
            addCriterion("cons_info_email is null");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailIsNotNull() {
            addCriterion("cons_info_email is not null");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailEqualTo(String value) {
            addCriterion("cons_info_email =", value, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailNotEqualTo(String value) {
            addCriterion("cons_info_email <>", value, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailGreaterThan(String value) {
            addCriterion("cons_info_email >", value, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailGreaterThanOrEqualTo(String value) {
            addCriterion("cons_info_email >=", value, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailLessThan(String value) {
            addCriterion("cons_info_email <", value, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailLessThanOrEqualTo(String value) {
            addCriterion("cons_info_email <=", value, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailLike(String value) {
            addCriterion("cons_info_email like", value, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailNotLike(String value) {
            addCriterion("cons_info_email not like", value, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailIn(List<String> values) {
            addCriterion("cons_info_email in", values, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailNotIn(List<String> values) {
            addCriterion("cons_info_email not in", values, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailBetween(String value1, String value2) {
            addCriterion("cons_info_email between", value1, value2, "consInfoEmail");
            return (Criteria) this;
        }

        public Criteria andConsInfoEmailNotBetween(String value1, String value2) {
            addCriterion("cons_info_email not between", value1, value2, "consInfoEmail");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}